package com.boot.service.impl;

import com.boot.dao.NotifyManagementDao;
import com.boot.entity.Notify;
import com.boot.service.INotifyManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class INotiryManagementServiceImpl implements INotifyManagementService {

    @Autowired
    NotifyManagementDao dao;


    @Override
    public int queryNotifyNum(int state) {
        return dao.queryNotifyNum(state);
    }

    @Override
    public List<Notify> queryAllNotify(int state) {
        return dao.queryAllNotify(state);
    }

    @Override
    public Notify queryNotifyById(int id) {
        return dao.queryNotifyById(id);
    }

    @Override
    public int modifyNotify(int id, long time, int state, int auditorId) {
        return dao.modifyNotify(id,time,state,auditorId);
    }

    @Override
    public int addNotify(Notify notify) {
        return dao.addNotify(notify);
    }

    @Override
    public int alterNotify(Notify notify) {
        return dao.alterNotify(notify);
    }

    @Override
    public int deleteNotify(int id) {
        return dao.deleteNotify(id);
    }

    @Override
    public int notifyReadCount(int id, int count) {
        return dao.notifyReadCount(id,count);
    }

}
